import request from '@/utils/request'// 查询公告列表

export function getUserList(data) {
  return request({
    url: '/staff/list',
    method: 'post',
    data: data
  })
}
  // 添加
  export function addUser(data) {
    return request({
      url: '/staff/add',
      method: 'post',
      data: data
    })
  }
  // 修改参数配置
export function updateUser(data) {
    return request({
      url: '/staff/edit',
      method: 'post',
      data: data
    })
  }
// 详情
export function UserInfo(data) {
    return request({
      url: '/staff/info',
      method: 'post',
      data: data
    })
}

  // 删除
export function delUser(data) {
    return request({
      url: '/staff/remove',
      method: 'post',
      data: data
    })
  }
  //获取账号id
  export function getUserId(query) {
    return request({
      url: '/system/user/list/role',
      method: 'get',
      params:query
    })
  }
    //获取职位id
    export function getPostId(data) {
      return request({
        url: '/staff/post/search',
        method: 'post',
        data: data
      })
    }


        //获取职位列表
        export function getPostList(data) {
          return request({
            url: '/system/user/list/all',
            method: 'post',
            data: data
          })
        }
     
 
